package genericclassdemo;

public class GenericClassDemo {

    public static void main(String[] args) {
        Base<String> base1=new Base<String>("This a string value!");
        Base<Integer> base2 = new Base<Integer>(100);

        base1.print();
        base2.print();

        Integer[] arr1 = {1,2,3,4,5};
        String[] arr2 = {"banana","orange","apple","watermelon"};

        new Base().print(arr1);
        new Base().print(arr2);
    }
}
